package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.IsRoleInfo;
import cn.com.nes.site.entity.vo.role.SaveRoleInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ShenWei
 * @Date: 2024/03/07/18:56
 */
public interface IsRoleInfoMapper extends BaseMapper<IsRoleInfo> {

    // 根据厂商id获取
    String getRepairStationRole(String manufactureId);

    String selectRoleName(@Param("vo") SaveRoleInfoVo vo, @Param("manufactureId") String manufactureId);

    IsRoleInfo selectRoleInfoByRoleId(@Param("roleId") String roleId, @Param("manufactureId") String manufactureId);

    int updateByRoleId(IsRoleInfo roleInfo);
}
